from rest_framework.generics import ListAPIView
from rest_framework.response import Response
from rest_framework.views import APIView
from xyz.models import Channel
from xyz.utils.page import Page
from yc1997512.serializers.articlechannels import ChannelModelserializer


class ArticleChannel(ListAPIView):
    """频道列表"""
    queryset = Channel.objects.all()
    serializer_class = ChannelModelserializer
    pagination_class = Page







